<link rel="stylesheet" href="../addons/jy_aligroup/custom/templates/mobile/css/style.css?v=2019" />
<div class='fui-page creditshop-index-page'>
	<div class="jy2-headertopbg">
			<div class="fui-header" style="background:none">
				<div class="fui-header-left">
					<a class="back" style="color:#fff" href="javascript:" ng-click="goback()"></a>
				</div>
				<div class="title bold" style="font-size:1rem;color:#fff">拼团列表</div>
			</div>
	 </div>
	<div class='fui-content jy2-headertop order-list' style="padding-bottom:2.5rem;">	
		<div class="fui-searchbar" style="background:none">
			<div class="fui-cellone" style="padding:0.5rem 0;">
							 <div class="fui-cellone-info">
								<div class="search-input" style="height:1.6rem">
									<form action="javascript:return true">
									<i id="searchsub" class="icon icon-sousuo1 bold" ng-click="tool.get_list('jy_aligroup/group//',true)" style="line-height: 1.7rem;"></i>
									<input type="search" placeholder="请输入商品名称" class="search" ng-model="pagedata.params.keyword" style="height:1.6rem;border: 0;text-align: left; color: #999; font-size:0.6rem;background:#fff;border-radius: 1rem;" />
									</form>
								</div>
							 </div>
							 <div class="fui-cellone-remark noremark">
								<span style="margin-left:0.3rem;font-size: 0.75rem;" ng-click="tool.get_list('jy_aligroup/group//',true)">搜索</span>
							 </div>
			</div>
		</div>
		<div ng-if="pagedata.list.length<1" class='fui-content-inner'style="padding:0;">
			<div class='content-empty'>
				<div class="fui-message fui-message-popup in">
					<div class="icon ">
						<i class="icon jinyunicon icon-information"></i>
					</div>
					<div class="content">未找到任何活动</div>
					<a class="btn btn-default btn-default block" href="javascript:;" ng-click="access_json('jy_aligroup/index/')">去首页逛逛</a>
					<a class="btn btn-default btn-default block back" ng-click="goback()">返回上一页</a>
				</div>
			</div>
			<ul class="lynn_index_list_ul row" id="container" style="background: none;"></ul>
		</div>
		<li ng-repeat="item in pagedata.list" class="lynn_index_list_li fui-list goods-list">
			<a href="javascript:;" ng-click="access_json('jy_aligroup/goods//id='+item.id)"  class="lynn_index_list_a fui-list-media">
				<img ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}" alt="{{item.title}}">
			</a>
			<div class="lynn_index_list_info fui-list-inner" ng-click="access_json('jy_aligroup/goods//id='+item.id)">
				<h3 style="margin-top:0.2rem">{{item.title}}</h3>
				<p>{{item.desc}}</p>
				<del>原价：¥{{item.goods.price}}</del>
				<div class="lynn_index_list_team">
						<span class="lynn_index_list_team_left">
							<strong><i class="icon jinyunicon icon-paihao0"></i></strong>
							{{item.groupnum}}人团 ¥ <red>{{item.groupsprice}}</red>/{{item.units ||'件'}} <span ng-if="item.endstatus==1">剩{{item.lastnum}}{{item.units ||'件'}}</span>
						</span>
					<a href="javascript:;" ng-click="access_json('jy_aligroup/goods//id='+item.id)" class="lynn_index_list_team_a">{{item.statustitle}} ></a>
				</div>
			</div>
		</li>
	
</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.loading = true;  //状态标记
scope.isnodata = false;
//滚动加载
scope.tool.get_list('jy_aligroup/group//',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_aligroup/group//');
}
//手机软键盘--搜索
$("body").keydown(function() {
    if (event.keyCode == "13") {
        $('#searchsub').click();
    }
});
</script>